Bug 596012 - popup menu position is horribly off on gdk quartz with ...
authorKristian Rietveld <kris@gtk.org>
Sun, 27 Sep 2009 11:36:08 +0000 (13:36 +0200)
committerKristian Rietveld <kris@gtk.org>
Sun, 27 Sep 2009 11:44:10 +0000 (13:44 +0200)
commit2f782de1b7eb1b3dd778d01867e4e56a77af4a8c
tree7057c1727978a201de14704e191165d000a34168
parentf506752affaf5bc0e8e96ab6c3421b042ab0319a
Bug 596012 - popup menu position is horribly off on gdk quartz with ...

Based on first patches by Christian Hergert.  Change
screen_get_monitor_geometry() so that it translates the layout of the screens
from Cocoa layout to GDK layout.  In Cocoa, the screen locations
are specified in Cocoa geometry, as well as that GDK uses a different way
to place individual monitors in the root window.  For now only monitors
that are laid out horizontally are supported (see the FIXMEs in the source),
in bug 596238 we will track future work to get things fully right.

Modify _gdk_quartz_window_get_inverted_screen_y() to take the differences
in screen layout between Cocoa and GDK into account.  Also this function
is subject to future work.
gdk/quartz/gdkscreen-quartz.c
gdk/quartz/gdkwindow-quartz.c